#include "searchServerMessageHandler.h"
#include "searchServerMessage.h"
#include "serverInfoMessage.h"

SearchServerMessageHandler::SearchServerMessageHandler()
{
}

void SearchServerMessageHandler::handle(Message<String>* message, const IPaddress& attachment)
{
	ServerInfoMessage p((MtpMessage*)message);
	p.send(attachment);
}

Message<String>* SearchServerMessageHandler::decode(Protocol<String>* packet, const IPaddress& attachment)
{
	return new SearchServerMessage((MtpProtocol*)packet);
}
